package com.kingyun.gpsinspection.purificationservice.facade.model.tdm;

import com.alibaba.fastjson.annotation.JSONField;
import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;

import java.io.Serializable;
import java.util.Date;

/**
 * 工单
 */
public class WorkOrder extends BootstrapSearchBean implements Serializable {
    //工单ID
    private String workOrderId;
    //工单名称
    private String workOrderName;
    //执行组织
    private String orgId;
    //执行主体
    private String executiveBody;
    //生产实体类型ID
    private String entityTypeId;
    //生产实体ID
    private String entityId;
    //任务类型
    private Short taskType;
    //发起任务ID
    private String taskId;
    //任务环节ID
    private String taskLinkId;
    //执行人
    private String userId;
    //计划开始时间
    //fastjson反序列化时间字符串为Date
    //百度：fastjson 年月日时分 转date--https://my.oschina.net/u/1444624/blog/375740
    @JSONField(format = "yyyy-MM-dd HH:mm")
    private Date startTime;
    //计划完成时间
    @JSONField(format = "yyyy-MM-dd HH:mm")
    private Date finishTime;
    //工作内容ID
    private String workInstanceId;
    //操作单元ID
    private String cellId;
    //设备ID
    private String deviceId;
    //工单级别
    private Short workOrderLevel;
    //是否已下载
    private Short isDownload;
    //装填
    private Short status;
    //能否完成
    private Short canFinish;
    //是否关联巡回检查
    private Short relatedToPatrolInspection;
    //巡回检查ID
    private String patrolInspectionId;
    //是否关联常规操作
    private Short relatedToNormalOperation;
    //常规操作ID
    private String normalOperationId;
    //是否关联维护保养
    private Short relatedToMaintenance;
    //维护保养ID
    private String maintenanceId;
    //是否关联检查维修
    private Short relatedToCheck;
    //检查维修ID
    private String checkId;
    //是否关联分心处理
    private Short relatedToAnalysisProcess;
    //分析处理ID
    private String analysisProcessId;
    //是否关联变更管理
    private Short relatedToChangeManage;
    //变更管理ID
    private String changeManageId;
    //是否关联属地监督：pdm对字段有长度限制
    private Short relatedToTerritorialSupervi;
    //属地监督ID
    private String territorialSupervisionId;
    //是否关联作业许可
    private Short relatedToWorkPermit;
    //作业许可ID
    private String workPermitId;
    //是否关联危害因素辨识
    private Short relatedToHazardIdentificati;
    //危害因素辨识ID
    private String hazardIdentificationId;
    //是否关联物料管理
    private Short relatedToMaterialsManage;
    //物料管理ID
    private String materialsManageId;
    //创建人ＩＤ
    private String createUserId;
    //创建人姓名
    private Date createTime;
    //修改人ID
    private String modifyUserId;
    //创建时间
    private Date modifyTime;
    //是否删除
    private Short isDelete;
    //申请时间
    private Date applyTime;
    //审批时间
    private Date approvalTime;
    //是否催办
    private Short isPress;
    //上次催办时间
    private Date lastPressTime;
    //作业条件确认备注
    private String remark;
    //确认状态
    private Short confirmStatus;
    //确认时间
    private Date confirmTime;
    //确认人
    private String confirmPerson;
    //确认意见
    private String confirmOpinion;
    //工单实际完成时间
    private Date actualFinishTime;

    public Date getActualFinishTime() {
        return actualFinishTime;
    }

    public void setActualFinishTime(Date actualFinishTime) {
        this.actualFinishTime = actualFinishTime;
    }

    public String getWorkOrderId() {
        return workOrderId;
    }

    public void setWorkOrderId(String workOrderId) {
        this.workOrderId = workOrderId == null ? null : workOrderId.trim();
    }

    public String getWorkOrderName() {
        return workOrderName;
    }

    public void setWorkOrderName(String workOrderName) {
        this.workOrderName = workOrderName == null ? null : workOrderName.trim();
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId == null ? null : orgId.trim();
    }

    public String getExecutiveBody() {
        return executiveBody;
    }

    public void setExecutiveBody(String executiveBody) {
        this.executiveBody = executiveBody == null ? null : executiveBody.trim();
    }

    public String getEntityTypeId() {
        return entityTypeId;
    }

    public void setEntityTypeId(String entityTypeId) {
        this.entityTypeId = entityTypeId == null ? null : entityTypeId.trim();
    }

    public String getEntityId() {
        return entityId;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId == null ? null : entityId.trim();
    }

    public Short getTaskType() {
        return taskType;
    }

    public void setTaskType(Short taskType) {
        this.taskType = taskType;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId == null ? null : taskId.trim();
    }

    public String getTaskLinkId() {
        return taskLinkId;
    }

    public void setTaskLinkId(String taskLinkId) {
        this.taskLinkId = taskLinkId == null ? null : taskLinkId.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public String getWorkInstanceId() {
        return workInstanceId;
    }

    public void setWorkInstanceId(String workInstanceId) {
        this.workInstanceId = workInstanceId == null ? null : workInstanceId.trim();
    }

    public String getCellId() {
        return cellId;
    }

    public void setCellId(String cellId) {
        this.cellId = cellId == null ? null : cellId.trim();
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId == null ? null : deviceId.trim();
    }

    public Short getWorkOrderLevel() {
        return workOrderLevel;
    }

    public void setWorkOrderLevel(Short workOrderLevel) {
        this.workOrderLevel = workOrderLevel;
    }

    public Short getIsDownload() {
        return isDownload;
    }

    public void setIsDownload(Short isDownload) {
        this.isDownload = isDownload;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public Short getCanFinish() {
        return canFinish;
    }

    public void setCanFinish(Short canFinish) {
        this.canFinish = canFinish;
    }

    public Short getRelatedToPatrolInspection() {
        return relatedToPatrolInspection;
    }

    public void setRelatedToPatrolInspection(Short relatedToPatrolInspection) {
        this.relatedToPatrolInspection = relatedToPatrolInspection;
    }

    public String getPatrolInspectionId() {
        return patrolInspectionId;
    }

    public void setPatrolInspectionId(String patrolInspectionId) {
        this.patrolInspectionId = patrolInspectionId == null ? null : patrolInspectionId.trim();
    }

    public Short getRelatedToNormalOperation() {
        return relatedToNormalOperation;
    }

    public void setRelatedToNormalOperation(Short relatedToNormalOperation) {
        this.relatedToNormalOperation = relatedToNormalOperation;
    }

    public String getNormalOperationId() {
        return normalOperationId;
    }

    public void setNormalOperationId(String normalOperationId) {
        this.normalOperationId = normalOperationId == null ? null : normalOperationId.trim();
    }

    public Short getRelatedToMaintenance() {
        return relatedToMaintenance;
    }

    public void setRelatedToMaintenance(Short relatedToMaintenance) {
        this.relatedToMaintenance = relatedToMaintenance;
    }

    public String getMaintenanceId() {
        return maintenanceId;
    }

    public void setMaintenanceId(String maintenanceId) {
        this.maintenanceId = maintenanceId == null ? null : maintenanceId.trim();
    }

    public Short getRelatedToCheck() {
        return relatedToCheck;
    }

    public void setRelatedToCheck(Short relatedToCheck) {
        this.relatedToCheck = relatedToCheck;
    }

    public String getCheckId() {
        return checkId;
    }

    public void setCheckId(String checkId) {
        this.checkId = checkId == null ? null : checkId.trim();
    }

    public Short getRelatedToAnalysisProcess() {
        return relatedToAnalysisProcess;
    }

    public void setRelatedToAnalysisProcess(Short relatedToAnalysisProcess) {
        this.relatedToAnalysisProcess = relatedToAnalysisProcess;
    }

    public String getAnalysisProcessId() {
        return analysisProcessId;
    }

    public void setAnalysisProcessId(String analysisProcessId) {
        this.analysisProcessId = analysisProcessId == null ? null : analysisProcessId.trim();
    }

    public Short getRelatedToChangeManage() {
        return relatedToChangeManage;
    }

    public void setRelatedToChangeManage(Short relatedToChangeManage) {
        this.relatedToChangeManage = relatedToChangeManage;
    }

    public String getChangeManageId() {
        return changeManageId;
    }

    public void setChangeManageId(String changeManageId) {
        this.changeManageId = changeManageId == null ? null : changeManageId.trim();
    }

    public Short getRelatedToTerritorialSupervi() {
        return relatedToTerritorialSupervi;
    }

    public void setRelatedToTerritorialSupervi(Short relatedToTerritorialSupervi) {
        this.relatedToTerritorialSupervi = relatedToTerritorialSupervi;
    }

    public String getTerritorialSupervisionId() {
        return territorialSupervisionId;
    }

    public void setTerritorialSupervisionId(String territorialSupervisionId) {
        this.territorialSupervisionId = territorialSupervisionId == null ? null : territorialSupervisionId.trim();
    }

    public Short getRelatedToWorkPermit() {
        return relatedToWorkPermit;
    }

    public void setRelatedToWorkPermit(Short relatedToWorkPermit) {
        this.relatedToWorkPermit = relatedToWorkPermit;
    }

    public String getWorkPermitId() {
        return workPermitId;
    }

    public void setWorkPermitId(String workPermitId) {
        this.workPermitId = workPermitId == null ? null : workPermitId.trim();
    }

    public Short getRelatedToHazardIdentificati() {
        return relatedToHazardIdentificati;
    }

    public void setRelatedToHazardIdentificati(Short relatedToHazardIdentificati) {
        this.relatedToHazardIdentificati = relatedToHazardIdentificati;
    }

    public String getHazardIdentificationId() {
        return hazardIdentificationId;
    }

    public void setHazardIdentificationId(String hazardIdentificationId) {
        this.hazardIdentificationId = hazardIdentificationId == null ? null : hazardIdentificationId.trim();
    }

    public Short getRelatedToMaterialsManage() {
        return relatedToMaterialsManage;
    }

    public void setRelatedToMaterialsManage(Short relatedToMaterialsManage) {
        this.relatedToMaterialsManage = relatedToMaterialsManage;
    }

    public String getMaterialsManageId() {
        return materialsManageId;
    }

    public void setMaterialsManageId(String materialsManageId) {
        this.materialsManageId = materialsManageId == null ? null : materialsManageId.trim();
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId == null ? null : createUserId.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getModifyUserId() {
        return modifyUserId;
    }

    public void setModifyUserId(String modifyUserId) {
        this.modifyUserId = modifyUserId == null ? null : modifyUserId.trim();
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Short getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Short isDelete) {
        this.isDelete = isDelete;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public Date getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalTime(Date approvalTime) {
        this.approvalTime = approvalTime;
    }

    public Short getIsPress() {
        return isPress;
    }

    public void setIsPress(Short isPress) {
        this.isPress = isPress;
    }

    public Date getLastPressTime() {
        return lastPressTime;
    }

    public void setLastPressTime(Date lastPressTime) {
        this.lastPressTime = lastPressTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Short getConfirmStatus() {
        return confirmStatus;
    }

    public void setConfirmStatus(Short confirmStatus) {
        this.confirmStatus = confirmStatus;
    }

    public Date getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Date confirmTime) {
        this.confirmTime = confirmTime;
    }

    public String getConfirmPerson() {
        return confirmPerson;
    }

    public void setConfirmPerson(String confirmPerson) {
        this.confirmPerson = confirmPerson == null ? null : confirmPerson.trim();
    }

    public String getConfirmOpinion() {
        return confirmOpinion;
    }

    public void setConfirmOpinion(String confirmOpinion) {
        this.confirmOpinion = confirmOpinion == null ? null : confirmOpinion.trim();
    }
}